import request from '@/utils/request'

export default {
  getHospSetList(current,limit,searchObj){
    return request({
      url: `/admin/hosp/hospSet/findPageHospSet/${current}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  deleteHospSet(id){
    return request({
      url:`/admin/hosp/hospSet/${id}`,
      method: 'delete'
    })
  },
  batchHospSet(ids){
    return request({
      url: `/admin/hosp/hospSet/batchRemove`,
      method: 'delete',
      data: ids
    })
  },
  lockHospSet(id,status){
    return request({
      url: `/admin/hosp/hospSet/lockHospitalSet/${id}/${status}`,
      method: 'put'
    })
  },
  addHospSet(hospSet){
    return request({
      url: '/admin/hosp/hospSet/saveHospSet',
      method: 'post',
      data: hospSet
    })
  },
  getHospSetById(id){
    return request({
      url: `/admin/hosp/hospSet/getHospSet/${id}`,
      method: 'get'
    })
  },
  updateHospSet(hospSet){
    return request({
      url: `/admin/hosp/hospSet/updateHospSet`,
      method: 'post',
      data: hospSet
    })
  }
}
